Ext.util.Format.cnMoney = function(v) {
	v = (Math.round((v - 0) * 100)) / 100;
	v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v+ "0" : v);
	v = String(v);
	/*var ps = v.split('.'), whole = ps[0], sub = ps[1] ? '.' + ps[1] : '.00', r = /(\d+)(\d{3})/;
	while (r.test(whole)) {
		whole = whole.replace(r, '$1' + ',' + '$2');
	}
	v = whole + sub;
	if (v.charAt(0) == '-') {
		return '-￥' + v.substr(1);
	}*/
	return "￥" + v;
},

Ext.util.Format.comboRenderer = function(combo) {
	return function(value) {
		// var record = combo.findRecord(combo.valueField, value);
		var rowIndex = combo.getStore().find(combo.valueField, value);
		if (rowIndex < 0) return '请选择';
		var record = combo.getStore().getAt(rowIndex);
		return record
				? record.get(combo.displayField)
				: combo.valueNotFoundText
	};
}